#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int n;
    int arr1[60] = { 0 };
    int arr2[60] = { 0 };
    scanf("%d", &n);
    int g = 0;
    for (int i = 0; i < n; i++)
    {
        int sum = 0;
        scanf("%d", &arr1[i]);
        for (int j = 0; j < i; j++)
        {
            if (arr2[j] == arr1[i])
            {
                sum = 1;
                break;
            }
        }
        if (sum == 0)
        {
            arr2[g] = arr1[i];
            g++;
        }
    }
    for (int i = 0; i < g; i++)
    {
        printf("%d ", arr2[i]);
    }
    return 0;
}